<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/7/26
 * Time: 18:02
 */

namespace app\admin\controller\news;


use app\common\controller\Backend;

class Category extends Backend
{
    protected $model = null;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = model('NewsCategory');
    }

    public function index()
    {
        $this->searchFields = ['name', 'id'];
        return parent::index();
    }
}